package model

import "time"

/*
	data := &model.ShareTable{
		Identity: uuid,
		UserIdentity: userIdentity,
		UserStoreIdentity: req.UserStoreIdentity,
		StoreIdentity: us.StoreIdentity,
		ExpiredTime: req.ExpiredTime,
	}
*/
type ShareTable struct {
	// Below is ref to database table field
	// id
	Id int
	// identity
	Identity string
	// user_identity
	UserIdentity string
	// user_store_identity
	UserStoreIdentity string
	// store_identity
	StoreIdentity string
	// expired_time
	ExpiredTime int
	// click_num
	ClickNum int

	CreatedAt time.Time `xorm:"created"`
	UpdatedAt time.Time `xorm:"updated"`
	DeletedAt time.Time `xorm:"deleted"`
}

func (table ShareTable) TableName() string {
	return "sharetable"
}